package cn.zjyj.module.zjyj.controller.admin.deviceinstanceacceptancerecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备实例验收单新增/修改 Request VO")
@Data
public class DeviceInstanceAcceptanceRecordSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11024")
    private Long id;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "219")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    @Schema(description = "设备实例id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2926")
    @NotNull(message = "设备实例id不能为空")
    private Long instanceId;

    @Schema(description = "验收日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "验收日期不能为空")
    private LocalDateTime acceptanceDate;

    @Schema(description = "验收人员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18618")
    @NotNull(message = "验收人员id不能为空")
    private Long acceptancePersonId;

    @Schema(description = "验收结果（0:通过，1:不通过）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "验收结果（0:通过，1:不通过）不能为空")
    private Integer acceptanceResult;

    @Schema(description = "验收备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @NotEmpty(message = "验收备注不能为空")
    private String acceptanceRemark;

}